//
//  DWEditUserInfoCell.m
//  DWTeacher
//
//  Created by Mxionlly on 16/11/30.
//  Copyright © 2016年 Mxionlly. All rights reserved.
//

#import "DWEditUserInfoCell.h"

@implementation DWEditUserInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}


+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *Service = @"DWEditUserInfoCell";
    DWEditUserInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:Service];
    if (cell == nil) {
        cell =   [[[NSBundle mainBundle] loadNibNamed:@"DWEditUserInfoCell" owner:nil options:nil] objectAtIndex:0];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}



+ (instancetype)cellWithTableViewImageWidth:(UITableView *)tableView
{
    static NSString *Service = @"DWEditUserInfoCell";
    DWEditUserInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:Service];
    if (cell == nil) {
        cell =   [[[NSBundle mainBundle] loadNibNamed:@"DWEditUserInfoCell" owner:nil options:nil] objectAtIndex:0];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.layoutImageWidth.constant = 0;
    }
    return cell;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(UIImageView*)headerImg{
    _headerImg.clipsToBounds = YES;
    _headerImg.layer.cornerRadius = 18;
    return _headerImg;
}


@end
